const Router = require('../lib/router');
const {swaggerSpec} = require('../swagger.config');
const router = new Router();

router.get('/swagger.json', async ctx => {
  ctx.set('Content-Type', 'application/json');
  ctx.body = swaggerSpec;
});

module.exports = router;